package org.jeecg.common.es.enums;


import lombok.Getter;

/**
 * @author yangpeng1.vendor@sensetime.com
 * @Description: 统计单位枚举
 * @date 2022年02月18日 11:20 PM
 */
public enum StatisticalUnitEnum {

    /**
     * 最大值
     */
    MAX("MAX", "maximumValue", "最大值"),
    /**
     * 最小值
     */
    MIN("MIN", "minimumValue", "最小值"),
    /**
     * 平均值
     */
    AVG("AVG", "averageValue", "平均值"),

    /**
     * 总合值
     */
    SUM("SUM", "sumValue", "总合值"),

    TOP_HITS("TOP_HITS", "topHits", "排序取值");

    /**
     * code
     */
    @Getter
    private final String code;

    /**
     * name
     */
    @Getter
    private final String name;
    /**
     * 描述
     */
    @Getter
    private final String description;

    StatisticalUnitEnum(String code, String name, String description) {
        this.code = code;
        this.description = description;
        this.name = name;
    }
}
